/* rules 表格输入框校验参数 */
import rulesMode from "@/utils/rules-validator";

const rules = {
  couponType: rulesMode.required,
  start: rulesMode.required,
  backgroundUrl: rulesMode.required,
  whetherCanShare: rulesMode.required,
  usableRange: rulesMode.required,
  activityMode: rulesMode.required,
  activeMyIconImg: rulesMode.required,
  notActiveMyIconImg: rulesMode.required,
  validType: rulesMode.required,
  activityIconImg: rulesMode.required,
  dividePercent: rulesMode.required,
  productInFlag: rulesMode.required,
  activityLink: rulesMode.isURL,
  useThreshold: rulesMode.required,
  quota: rulesMode.required,
  bankCardMobile: rulesMode.phone,
  merType: rulesMode.required,
  roleType: rulesMode.required,
  merchantName: rulesMode.required,
  accsplitMerName: rulesMode.required,
  userPapersType: rulesMode.required,
  papersNo: rulesMode.idCard,
  businessLicenseType: rulesMode.required,
  businessLicense: rulesMode.required,
  accountType: rulesMode.required,
  account: rulesMode.required,
  account2: rulesMode.required,
  accountName: rulesMode.required,
  accountName2: rulesMode.required,
  accountBank: rulesMode.required,
  accountBankCode: rulesMode.required,
  // **
  contactName: rulesMode.required,
  zzAccountReceiverNo: rulesMode.required,
  certNo: rulesMode.required,
  email: rulesMode.email,
  categoryId: rulesMode.required,
  autoAcctFlag: rulesMode.required,
  sandMerchantNo: rulesMode.required,
  cardholderName: rulesMode.required,
  IDCard: rulesMode.idCard,
  idCard: rulesMode.idCard,
  bankCard: rulesMode.bankNo,
  productShelfValue: rulesMode.required,
  belongName: rulesMode.required,
  operLog: rulesMode.required,
  orderCompleteValue: rulesMode.required,
  operImg: rulesMode.required,
  orderCompleteType: rulesMode.required,
  name: rulesMode.required,
  advertLoc: rulesMode.required,
  advertImg: rulesMode.required,
  unitType: rulesMode.required,
  // invoice-info ApplyDialog
  companyName: rulesMode.required,
  openAccountBank: rulesMode.required,
  dutyParagraph: rulesMode.required,
  bankAccount: rulesMode.required,
  registerAddress: rulesMode.required,
  registerNumber: rulesMode.phone,
  qualificationImg: rulesMode.required,
  // invoice-info
  invoiceType: rulesMode.required,
  // companyName: rulesMode.required,
  // dutyParagraph: rulesMode.required,
  // app-banner
  expressAddress: rulesMode.required,
  receiver: rulesMode.required,
  contactNumber: rulesMode.phone,
  // invoice-list ApplyInvoiceDialog
  invoiceUrl: rulesMode.required,
  expressName: rulesMode.required,
  expressNo: rulesMode.required,
  // invoice-receive-list ApplyInvoiceDialog
  // transType: rulesMode.required,
  // invoiceUrl: rulesMode.required,
  // expressName: rulesMode.required,
  // expressNo: rulesMode.required,
  // my-info UpdateMobileDialog
  code: rulesMode.phoneCode,
  sort: rulesMode.phoneCode,
  mobile: rulesMode.phone,
  // my-info
  size: rulesMode.required,
  password: rulesMode.password,
  userOldPsd: rulesMode.password,
  userNewPsd: rulesMode.password,
  userNewPsdAgin: rulesMode.password,
  // purchase-order AddTemProductDialog
  spreadProductName: rulesMode.required,
  shareholderA: rulesMode.required,
  shareholderACertNo: rulesMode.idCard,
  spreadCostPrice: rulesMode.required,
  // unitType: rulesMode.required,
  remarks: rulesMode.required,
  remarks2: rulesMode.required,
  remarks3: rulesMode.required,
  // wallet OpenAccountBindCard
  accountName: rulesMode.required,
  cardType: rulesMode.required,
  accountNo: rulesMode.bankNo,
  accountMobile: rulesMode.phone,
  openBank: rulesMode.required,
  // wallet OpenAccountCheckRemit
  receiveAmount: rulesMode.required,
  // wallet OpenAccountCompany
  // name: rulesMode.required,
  legalName: rulesMode.required,
  legalMobile: rulesMode.phone,
  legalLicenceNo: rulesMode.idCard,
  legalCertValidTime: rulesMode.timeScope,
  legalCertValidUntil: rulesMode.required,
  financialName: rulesMode.required,
  financialCertMobile: rulesMode.phone,
  financialCertNo: rulesMode.idCard,
  financialCertValidTime: rulesMode.timeScope,
  financialCertValidUntil: rulesMode.required,
  identityId: rulesMode.required,
  certValidTime: rulesMode.timeScope,
  certValidUntil: rulesMode.required,
  idcardpicUrlF: rulesMode.required,
  idcardpicUrlB: rulesMode.required,
  certpicUrl: rulesMode.required,
  read: rulesMode.required,
  // wallet OpenAccountPersonage
  legalRepresentative: rulesMode.required,
  perIdcardNo: rulesMode.idCard,
  // legalCertValidTime: rulesMode.timeScope,
  // cardType: rulesMode.required,
  // accountNo: rulesMode.bankNo,
  // openBank: rulesMode.required,
  // accountMobile: rulesMode.phone,
  // idcardpicUrlF: rulesMode.required,
  // idcardpicUrlB: rulesMode.required,
  // read: rulesMode.required,
  // wallet WithdrawDialog
  walletMonny: rulesMode.withdrawNum,
  // WorkerDetail
  realName: rulesMode.required,
  userName: rulesMode.userName,
  username: rulesMode.userName,
  sex: rulesMode.required,
  // ClientBuildDetail
  plotName: rulesMode.required,
  roomNo: rulesMode.required,
  houseType: rulesMode.required,
  space: rulesMode.required,
  // CaseDetail
  caseRemarks: rulesMode.required,
  caseStyle: rulesMode.required,
  houseArea: rulesMode.required,
  provinceId: rulesMode.required,
  cityId: rulesMode.required,
  areaId: rulesMode.required,
  communityName: rulesMode.required,
  mainImgUrl: rulesMode.required,
  // CaseDetailTable
  diagramUrl: rulesMode.required,
  vrUrl: rulesMode.required,
  sortNo: rulesMode.required,
  // CaseDetailCasePrice
  totalPrice: rulesMode.required,
  singlePrice: rulesMode.required,
  materialAddPrice: rulesMode.required,
  constructionAddPrice: rulesMode.required,
  materialPrice: rulesMode.required,
  constructionPrice: rulesMode.required,
  // order-manage client-order-prucharse-form
  // expressName: rulesMode.required,
  expressTel: rulesMode.phone,
  expressAdd: rulesMode.required,
  // order-manage AddBuildingDialog
  customRealName: rulesMode.required,
  customMobile: rulesMode.phone,
  customSex: rulesMode.required,
  // system-setup Dict DictDetail
  value: rulesMode.required,
  label: rulesMode.required,
  description: rulesMode.required,
  sort: rulesMode.required,
  // platform-setup update-app-info
  // platform-setup CitySubstation Detail
  cityId: rulesMode.city,
  newPassword: rulesMode.password,
  proportion: rulesMode.coefficient,
  serviceProportion: rulesMode.coefficient,
  companyPrice: rulesMode.required,
  platformProportion: rulesMode.coefficient,
  // platform-setup versions Detail
  ver: rulesMode.required,
  appname: rulesMode.required,
  isrequired: rulesMode.required,
  systemType: rulesMode.required,
  ischeck: rulesMode.required,
  isonline: rulesMode.required,
  downloadurl: rulesMode.required,
  title: rulesMode.required,
  type: rulesMode.required,
  levelId: rulesMode.required,
  count: rulesMode.required,
  info: rulesMode.required,
  // platform-setup product-category Detail
  no: rulesMode.required,
  specificationName: rulesMode.required,
  logoUrl: rulesMode.required,
  // vip-manage register-list AuditDialog
  isCheck: rulesMode.required,
  // vip-grade-manage setup Detail
  rate: rulesMode.required,
  minInterval: rulesMode.required,
  maxInterval: rulesMode.required,
  // brand-manage dealer-list SetTgDialog
  tgStatus: rulesMode.required,
  tgUserName: rulesMode.required,
  // brand-manage brand-list AuditDialog
  checkStatus: rulesMode.required,
  // app-img index-banner
  url2: rulesMode.required,
  url3: rulesMode.required,
  url1: rulesMode.required,
  // seckill-manage list Detail
  seckillTimeArr: rulesMode.seckillTimeScope,
  // product-case Detail
  imgUrl: rulesMode.required,
  commissionRate: rulesMode.required,
  kjlCommissionRate: rulesMode.required,
  kjlCommonCost: rulesMode.required,
  kjlVipCost: rulesMode.required,
  orderOvertimeType: rulesMode.required,
  orderOvertimeValue: rulesMode.required,
  premiumRate: rulesMode.required,
  citysId: rulesMode.required,
  groupName: rulesMode.required,
  vipCompanyPrice: rulesMode.required,
  classificationName: rulesMode.required,
  attrName: rulesMode.required,
  vipTime: rulesMode.required,
  activityName: rulesMode.required,
  totalQuota: rulesMode.required,
  usedQuota: rulesMode.required,
  discountMoney: rulesMode.required,
  img: rulesMode.required,
  createDate: rulesMode.required,
  contentUrl: rulesMode.required,
  content: rulesMode.required,
  subTitle: rulesMode.required,
  roleName: rulesMode.required,
  roleDesc: rulesMode.required,
  roleCode: rulesMode.required,
  loginName: rulesMode.userName,
  roleId: rulesMode.required,
  delFalg: rulesMode.required,
  cites: rulesMode.required,
  gmv: rulesMode.required,
  propertion: rulesMode.required,
  // 个人开户
  perContacts: rulesMode.required,
  perImages1: rulesMode.required,
  perImages2: rulesMode.required,
  masterPlaneNodeRate: rulesMode.required,
  spatialRenderingsRate: rulesMode.required,
  constructionDrawingRate: rulesMode.required,
  onsiteConstructionRate: rulesMode.required,
  completeNodeRate: rulesMode.required,
  qualityMoneyRate: rulesMode.required,
  qualityTermValue: rulesMode.required,
  // 供需管理
  activityTitle: rulesMode.required,
  activityImg: rulesMode.required,
  onlineFlag: rulesMode.required,
  timeArr: rulesMode.discountsTimeScope,
  // timeArr2: rulesMode.discountsTimeScope2,
  timeArr2: rulesMode.required,
  gender: rulesMode.required,
  citizenship: rulesMode.required,
  profession: rulesMode.required,
  address: rulesMode.required,
  alwaysLiveHome: rulesMode.required,
  businessScope: rulesMode.required,
  shareholderName: rulesMode.required,
  shareholderMobile: rulesMode.phone,
  shareholderCertNo: rulesMode.idCard,
  shareholderCertValidTime: rulesMode.timeScope,
  denomination: rulesMode.required,
  levelName: rulesMode.required,
  memberFee: rulesMode.required,
  commonNum: rulesMode.commonNum,

  // 系统设置
  constructionNodeRatio: rulesMode.required,
  waterAndElectricityNodeRatio: rulesMode.required,
  masonryNodeRatio: rulesMode.required,
  paintNodeRatio: rulesMode.required,
  finishedNodeRatio: rulesMode.required,
  goodsOrderCommissionCoefficient: rulesMode.required,
  escrowOrderCommissionCoefficient: rulesMode.required,
  retentionMoneyRatio: rulesMode.required,

  // 装修维权
  dealResult: rulesMode.required,
  dealPicUrl: rulesMode.required
};

export { rules };
